package cn.edu.zut.internship.web.controller.student;

import cn.edu.zut.internship.bean.sys.Result;
import cn.edu.zut.internship.iservice.student.StudentSV;
import com.alibaba.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("/student")
public class StudentController {
    @Reference
    StudentSV studentSV;
    @RequestMapping("/getStudent")
    public Result getUserName(Map params){

        Result result = new Result();

        result = studentSV.getStudentById();
        return result;

    }
}
